
class Solution:
    def isSubsequence(self, s, t):
        max_len = len(s)
        if not s:
            return True
        index = 0
        for char in t:
            if char == s[index]:
                index += 1
                if index >= max_len:
                    return True
        return False